//
// Created by jmdvirus on 2020/4/28 上午10:48.
// Copyright (c) 2020 benewtech All rights reserved.
//     
//     ******          *             *--*
//       ||            *             |
//       ||  *--*--*---*  * *-********--*
//   *  //   *  *  *   *\ / ||  |  |    |
//    **    *  *  *---* *  *   *--* *--*
// 

#ifndef OPENGLFUNC_OPENGLQTRAW_H
#define OPENGLFUNC_OPENGLQTRAW_H
#include <QtGui/QOpenGLFunctions>
#include "OpenGLQtWidget.h"

class OpenGLQtRaw : public QWidget {
    Q_OBJECT
public:
    explicit OpenGLQtRaw(int width, int height, QWidget *parent = 0);
    ~OpenGLQtRaw();

    void setFrame(unsigned char *data, int width, int height);
    void init();

private:
    int m_width;
    int m_height;
    QLabel   m_label;
    OpenGLQtWidget m_gl;
};


#endif //OPENGLFUNC_OPENGLQTRAW_H
